﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace BudgetMealsModels.Entities
{
    [NotMapped]
    public class FormUser
    {
        [Required]
        [MaxLength(20)]
        public String FirstName { get; set; }
        [Required]
        [MaxLength(20)]
        public String LastName { get; set; }
        [Required]
        [MaxLength(15)]
        public String UserName { get; set; }
        [Required]
        [DataType(DataType.EmailAddress)]
        public String Email { get; set; }
        [Required]
        [DataType(DataType.Password)]
        public String Password { get; set; }
        [Compare("Password")]
        [DataType(DataType.Password)]
        public String ConfirmPassword { get; set; }
        [DataType(DataType.MultilineText)]
        [AllowHtmlAttribute]
        [MaxLength(1000)]
        public String Biography { get; set; }
        [HiddenInput(DisplayValue = false)]
        public byte[] ImageData { get; set; }
        [HiddenInput(DisplayValue = false)]
        public string ImageMimeType { get; set; }
    }
}
